@layout("/backend/common/_containerForHis.html"){


<div class="dhcc-form">

    <form method='post' id="eliminateForm" name="eliminateForm" enctype="multipart/form-data">
        <input type="hidden" id="episodeId" value="${episodeId}">
        <input type="hidden" id="qcId" value="${qcId}">
        <input type="hidden" id="docId" value="${docId}">
        <label class="layui-form-label">原因</label>
        <div class="layui-input-block">
            <select id="reason" >
                <option value="" selected=""></option>
            </select>
        </div>
        <div class="toolbar">
            <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="eliminate.change()"/>
        </div>

    </form>

</div>

<script src="../../../../static/backend/sdc/eliminate/eliminate.js"></script>
<script>
    //动态加载原因
    window.onload = function(){
        var map = '${map}';
        var str = map.substring(1,map.length-1);
        var arr = str.split(',');
        for(var m = 0;m<arr.length;m++){
            var ar = arr[m].split('=');
            $('#reason').append("<option value="+ar[0]+">"+ar[1]+"</option>");
        }
    }
</script>

@}